<?php
/**
 * Created by PhpStorm.
 * User: jwb
 * Date: 2021/4/30
 * Time: 10:10
 */

namespace App\Extensions\Actions;


use App\Models\PatentEvaluate;
use Encore\Admin\Actions\RowAction;
use Illuminate\Http\Request;

class PatentConversionAction extends RowAction
{
    public $name = '&nbsp;&nbsp;转化申请';

    /**
     * @return  string
     */
    public function href()
    {
        return admin_route('patent-conversions.edit', [$this->row->id]);
    }

    public function __toString()
    {
        if ($this->row->conversion) {
            return '';
        }
        return $this->render();
    }
}